#include "PumpTheAir.h"
#include "WPILib.h"

PumpTheAir::PumpTheAir() {
	// Use requires() here to declare subsystem dependencies
	Requires(compressor);
}

// Called just before this Command runs the first time
void PumpTheAir::Initialize() {
	compressor->start();
}

// Called repeatedly when this Command is scheduled to run
void PumpTheAir::Execute() {
	SmartDashboard::Log(compressor->isAirTankFull(), "Compressor pressure sensor");
	SmartDashboard::Log(compressor->isEnabled(), "Compressor enabled");
}

// Make this return true when this Command no longer needs to run execute()
bool PumpTheAir::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void PumpTheAir::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void PumpTheAir::Interrupted() {
}
